<template>
  <div>我是子组件 = {{ value }} <button @click="$emit('input', 88)">change</button>
    <hr>
    {{ str }}  <button @click="$emit('update:str', '哈哈哈哈')"> change </button>
    <hr>
    {{ count }} <button @click="$emit('update:count', 1)">change</button>
  </div>
</template>

<script>
export default {
  props: {
    value: {
      type: Number,
      default: 0
    },
    str: {
      type: String,
      default: ''
    },
    count: {
      type: Number,
      default: 0
    }
  }
}
</script>

<style>

</style>
